package com.dfbz.demo02_枚举的使用;

import org.junit.Test;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_枚举的实例 {

    @Test
    public void test() throws Exception {

        Season autumn = Season.AUTUMN;
        Season autumn2 = Season.AUTUMN;

        System.out.println(autumn == autumn2);          // true


        Season spring = Season.SPRING;
        System.out.println(spring == autumn2);           // false

    }

}
